<!DOCTYPE html>
<html html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org"
      xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <form name="loginForm" th:action="@{/loginIn}" method="post"  onsubmit="return checkForm()">
        <table>
            <tr>
                <td>用户名：</td>
                <td><input type="text" name="username"></td>
            </tr>
            <tr>
                <td>密码：</td>
                <td><input type="password" name="password"></td>
            </tr>
            <tr>
                <td>注册</td>
                <td><input type="submit" value="登录"></td>
            </tr>
        </table>
    </form>

</div>
</body>
<script>
    function checkForm(){
        let form =Document.loginForm;
        return true;
    }
</script>
</html>
